﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine.Sgml.Configuration;
using System.Diagnostics;

namespace Engine.Sgml.Validation {
    internal sealed class IgnoreCommentValidator : IElementValidator {

        public SElement Validate(SElement element, SElement node) {
            Debug.Assert(node.LastNode != null);
            Debug.Assert(node.LastNode.NodeType == SgmlNodeType.Comment);
            node.Nodes.Pop();
            return node;
            }
        }
    }
